package com.aaa.controller;

import com.aaa.service.IJianHuangSefvice;
import com.aaa.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.lang.management.MemoryUsage;

@RestController
@RequestMapping("jh")
public class JianHuangController {


    @Autowired
    private IJianHuangSefvice jianHuangSefvice;

    @PostMapping
    public Result jianHuang(MultipartFile file){

        return Result.success(jianHuangSefvice.jh(file));
    }
}
